import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const dishes: AppRouteRecordRaw = {
  path: '/dishes',
  name: 'dishes',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '菜谱管理',
    requiresAuth: true,
    icon: 'icon-storage',
    order: 8,
  },
  children: [
    {
      path: 'dishesList',
      name: 'dishesList',
      component: () => import('@/views/dishes/dishList.vue'),
      meta: {
        locale: '菜品列表',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'addDishes',
      name: 'addDishes',
      component: () => import('@/views/dishes/addDish.vue'),
      meta: {
        locale: '添加菜品',
        requiresAuth: true,
        roles: ['*'],
      },
    }
  ],
};

export default dishes;
